﻿#region Usings

using FluentValidation;
using Yandex.Market.Api.Model;

#endregion

namespace Yandex.Market.Api.Validation
{
    internal class YmlCatalogValidator: AbstractValidator<YmlCatalog>
    {
        public YmlCatalogValidator()
        {
            RuleFor(catalog => catalog.Date).NotEmpty();
            RuleFor(catalog => catalog.Shop).SetValidator(new ShopValidator());
        }
    }
}